/**
 * Project:   warnme-server
 * File:      LocationUtils.java
 * License: 
 *            This file is licensed under GNU General Public License version 3
 *            http://www.gnu.org/licenses/gpl-3.0.txt
 *
 * Copyright: Bartosz Cichecki [ cichecki.bartosz@gmail.com ]
 * Date:      Apr 16, 2014
 */

package dtu.ds.warnme.utils;

import dtu.ds.warnme.exceptions.impl.ServiceException;

/**
 * @author Bartosz Cichecki
 */
public class LocationUtils {

	public static boolean isLatitudeValid(Float lat) throws ServiceException {
		return lat >= -90.0 && lat <= 90.0;
	}

	public static boolean isLongitudeValid(Float lng) throws ServiceException {
		return lng >= -180.0 && lng <= 180.0;
	}

}
